import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const state = {
  items: '222',
  show: false,
  socket: ''
}
const mutations = {
  ADD_ITEM (state, item) {
    state.items = item
  },
  CHA_SHOW (state, show) {
    state.show = show
  },
  ADD_SOCK (state, sock) {
    state.socket = sock
  }
}
const store = new Vuex.Store({
  state,
  mutations
})
export default store
